# encoding: utf-8
# @project: st2111 
# @file: re_flags_ascii.py
# @time: 2023/4/13 15:44
# @author: abcque
# @license: (C) Copyright 2013-2021
# @contact: abcque@outlook.com
# @IDE: PyCharm
# @desc:
import re

if __name__ == "__main__":
    text = u'Français złoty Österreich'
    pattern = r'\w+'
    ascii_pattern = re.compile(pattern, re.ASCII)
    unicode_pattern = re.compile(pattern)

    print('Text    :', text)
    print('Pattern :', pattern)
    print('ASCII   :', list(ascii_pattern.findall(text)))
    print('Unicode :', list(unicode_pattern.findall(text)))